import java.util.Scanner;

public class demo {
    public demo() {
    }

    public static void main(String[] args) {
        Scanner A = new Scanner(System.in);
        System.out.println("请用户输入年份");
        int a = A.nextInt();
        if (a / 1000 != 0 && a / 1000 < 10) {
            System.out.println("你输入的年份正确！");
            if ((a % 400 == 0||a % 4 == 0 && a % 100 != 00)) {
                System.out.println("是闰年");
            } else {
                System.out.println("不是闰年");}
        }else{
            System.out.println("你输入的年份有误！");
        }
    }
}


